import 'package:flutter/material.dart';

/// 基础MaterialAppWidget组件
class BasicMaterialAppWidget extends StatelessWidget {
  final String title;
  final Widget page;

  BasicMaterialAppWidget(this.title, this.page);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false, // 取消debug标识
      home: Scaffold(
        appBar: AppBar(
          title: Text("$title"),
        ),
        body: page,
      ),
    );
  }
}
